const axios = require('axios');
const request = require('request');
// console.log(axios);
// console.log(request);


let httpUrl = "http://scnews.newssc.org/2009cdxw/"
let headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9",
    "Connection": "keep-alive",
    "Host": "scnews.newssc.org",
    "If-Modified-Since": "Tue, 20 Oct 2020 03:30:18 GMT",
    "If-None-Match": "0c1f75491a6d61:0",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3776.400 QQBrowser/10.6.4212.400"
}


axios.get(httpUrl, {
    headers: headers
}).then(res=>{
    console.log(res);
})

